package com.cskaoyan.bean;

import lombok.Data;

import java.util.List;

/**
 * @author JJ
 * @description
 * @time 2021/7/12 22:03
 */
@Data
public class WxOrderBaseData<T> {

    List<T> data;
    Integer count;
    Integer totalPages;

    public static <T> WxOrderBaseData<T> ok(List<T> data, Integer count, Integer totalPages) {
        WxOrderBaseData<T> tBaseData = new WxOrderBaseData<>();
        tBaseData.setData(data);
        tBaseData.setCount(count);
        tBaseData.setTotalPages(totalPages);
        return tBaseData;
    }

}
